package com.rran.study.chat.friend.mapper;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.rran.study.chat.friend.entity.FriendApplicationDO;
import com.rran.study.chat.friend.entity.QueryFriendAppListDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author yy
 * @Type UserDao.java
 * @Desc
 * @date 2020/8/11 12:14
 */
public interface FriendApplicationMapper extends BaseMapper<FriendApplicationDO> {


    List<QueryFriendAppListDO> queryFriendAppByTarget(@Param("beanId") String beanId);

    Integer updateState(@Param("id") String id, @Param("state") Integer state);

    /**
     * 查询是否有重复了添加记录
     * @param friendApplicationDO
     * @return
     */
    Integer querySingleFriendApp(@Param("t") FriendApplicationDO friendApplicationDO);
}
